package edu.ustb.aop;

import java.lang.reflect.Method;

import org.springframework.aop.ThrowsAdvice;

public class ExceptionAdvice implements ThrowsAdvice {
	
	public void afterThrowing(Method method, Object[] args, Object target, Exception ex) {
		System.out.println(method.getName()+"抛出异常"+ex.getMessage());
	}
}
